﻿using MyControlClassLibrary;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using WeifenLuo.WinFormsUI.Docking;

namespace MotionGTS
{
    public partial class Frm_Jop : DockContent
    {
        public Frm_Jop()
        {
            InitializeComponent();
        }

        private void button4_MouseDown(object sender, MouseEventArgs e)
        {
            Frm_Coordinates.direction = Direction.Right;
        }

        private void button4_MouseUp(object sender, MouseEventArgs e)
        {
            Frm_Coordinates.direction = Direction.None;
        }
        /// <summary>
        /// 重置
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void button5_Click(object sender, EventArgs e)
        {
            Frm_Coordinates.acMovePoint(0, 0);
        }

        private void button1_MouseDown(object sender, MouseEventArgs e)
        {
            Frm_Coordinates.direction = Direction.Up;
        }

        private void button1_MouseUp(object sender, MouseEventArgs e)
        {
            Frm_Coordinates.direction = Direction.None;
        }

        private void button2_MouseDown(object sender, MouseEventArgs e)
        {
            Frm_Coordinates.direction = Direction.Down;
        }

        private void button2_MouseUp(object sender, MouseEventArgs e)
        {
            Frm_Coordinates.direction = Direction.None;
        }

        private void button3_MouseDown(object sender, MouseEventArgs e)
        {
            Frm_Coordinates.direction = Direction.Left;
        }

        private void button3_MouseUp(object sender, MouseEventArgs e)
        {
            Frm_Coordinates.direction = Direction.None;
        }
    }
}
